package com.yic.module.qms.controller.admin.inspectinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 检验单身 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class InspectInfoBaseVO {

    @Schema(description = "检验类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer inspectType;

    @Schema(description = "检验单", requiredMode = Schema.RequiredMode.REQUIRED, example = "2410")
    private Long inspectId;

    @Schema(description = "检验方案ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2410")
    @NotNull(message = "检验方案ID不能为空")
    private Long schemeId;

    @Schema(description = "检验项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6257")
    @NotNull(message = "检验项目ID不能为空")
    private Long entryId;

    @Schema(description = "检验项目名称", example = "赵六")
    private String entryName;

    @Schema(description = "检验项目代码")
    private String entryCode;

    @Schema(description = "检验工具")
    private String inspectTools;

    @Schema(description = "检验方法")
    private String inspectMethod;

    @Schema(description = "检验标准")
    private String standardStr;

    @Schema(description = "标准值")
    private BigDecimal standard;

    @Schema(description = "误差上限")
    private BigDecimal standardUp;

    @Schema(description = "误差下限")
    private BigDecimal standardDown;

    @Schema(description = "检验值")
    private BigDecimal reality;

    @Schema(description = "检验结论", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "检验结论不能为空")
    private Integer inspectResult;

    @Schema(description = "说明", example = "你说的对")
    private String remark;

}
